#!/usr/bin/python
# -*- coding: UTF-8 -*-
import requests
cookies={
"s":"ew16htl4u8",
"device_id":"7539316bb74bbdac7bc8c36cb5dc4a44",
"remember":"1;",
"remember.sig":"K4F3faYzmVuqC0iXIERCQf55g2Y",
"xq_a_token":"1dfaa6f37c9e4fe4b10f3c5d3a612a2ef6777e83",
"xq_a_token.sig":"4eu27rklofP-UzeddBOvRUaOlic",
"xq_r_token":"5597c4e17bf65894dbcb8bb979f863b4f068883b",
"xq_r_token.sig":"RBFq2UQSrOjhKxQ_UIafEyim-GA",
"xq_is_login":"1",
"xq_is_login.sig":"J3LxgPVPUzbBg3Kee_PquUfih7Q",
"u":"2640047290",
"u.sig":"odCBse2nYtPIUnNs-ohfhKGHO-k",
"bid":"9112b671a0e25ca799b0e0021bcf497b_jg8o7o1k",
"aliyungf_tc":"AQAAANV4tXzqYgAAnjSJd3W1+Qctu40/",
"__utmt":"1",
"__utma":"1.1210946824.1523838128.1525751215.1525926668.20",
"__utmb":"1.12.10.1525926668",
"__utmc":"1",
"__utmz":"1.1525751215.19.3.utmcsr=baidu|utmccn=(organic)|utmcmd=organic",
"Hm_lvt_1db88642e346389874251b5a1eded6e3":"1525686885,1525739744,1525751215,1525926668",
"Hm_lpvt_1db88642e346389874251b5a1eded6e3":"1525926921"
}

header={
"User-Agent": "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36"
}




def main():
    url="https://xueqiu.com/P/SP1048715"
    try:
        res=requests.get(url,headers=header,cookies=cookies)
        if res.status_code==200:
            print(res.text)
        else:
            print(res.status_code)
    except Exception as e:
        print(e)




if __name__ == '__main__':
    main()